// JavaScript Document
define(function(require, exports, module) {
	var ValidateCodeImage = function() {
		this.create();
	}
	ValidateCodeImage.prototype.src="/base/vcodeImage/index.jsp";
	ValidateCodeImage.prototype.element=null;
	ValidateCodeImage.prototype.opened=false;
	ValidateCodeImage.prototype.getElement = function() {
		return this.element
	}
	ValidateCodeImage.prototype.create = function() {
		var self=this;
		this.element=document.createElement("img")
		this.element.className="ht_validateCodeImage";
		this.update();
		$(this.element).bind("click",function(event){self.clickHandle(event)})
	}
	ValidateCodeImage.prototype.clickHandle = function(event) {
		this.update();
	}
	ValidateCodeImage.prototype.update = function() {
		this.element.src=this.src+"?_="+Math.random()
	}
	module.exports = ValidateCodeImage;
});